#include <sys/sysinfo.h>
#include <stdio.h>
#include <string.h>

int main()

{
    struct sysinfo info;
    int rc = 0;
    
    memset(&info, 0, sizeof(info)); 
    rc = sysinfo(&info);

    printf("Total Mem %d\n", info.totalram);
    printf("Mem unit %d\n", info.mem_unit);

    return 0;    

}
